package com.rshang.rsdp.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author zhangjun
 * @since 2017-07-21
 */
@TableName("TB_ROLEAUTH")
public class TbRoleauth extends Model<TbRoleauth> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    @TableId("ROLE_ID")
	private String roleId;
    /**
     * 权限id
     */
	@TableField("AUTH_ID")
	private Integer authId;


	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public Integer getAuthId() {
		return authId;
	}

	public void setAuthId(Integer authId) {
		this.authId = authId;
	}

	@Override
	protected Serializable pkVal() {
		return this.roleId;
	}

	@Override
	public String toString() {
		return "TbRoleauth{" +
			"roleId=" + roleId +
			", authId=" + authId +
			"}";
	}
}
